package com.g8.pethospitallearnbackend.entity;

import java.util.ArrayList;
import java.util.List;

public class OperationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OperationExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOpIdIsNull() {
            addCriterion("op_id is null");
            return (Criteria) this;
        }

        public Criteria andOpIdIsNotNull() {
            addCriterion("op_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpIdEqualTo(String value) {
            addCriterion("op_id =", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotEqualTo(String value) {
            addCriterion("op_id <>", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdGreaterThan(String value) {
            addCriterion("op_id >", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdGreaterThanOrEqualTo(String value) {
            addCriterion("op_id >=", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLessThan(String value) {
            addCriterion("op_id <", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLessThanOrEqualTo(String value) {
            addCriterion("op_id <=", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLike(String value) {
            addCriterion("op_id like", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotLike(String value) {
            addCriterion("op_id not like", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdIn(List<String> values) {
            addCriterion("op_id in", values, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotIn(List<String> values) {
            addCriterion("op_id not in", values, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdBetween(String value1, String value2) {
            addCriterion("op_id between", value1, value2, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotBetween(String value1, String value2) {
            addCriterion("op_id not between", value1, value2, "opId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNull() {
            addCriterion("role_id is null");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNotNull() {
            addCriterion("role_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoleIdEqualTo(String value) {
            addCriterion("role_id =", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotEqualTo(String value) {
            addCriterion("role_id <>", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThan(String value) {
            addCriterion("role_id >", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(String value) {
            addCriterion("role_id >=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThan(String value) {
            addCriterion("role_id <", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThanOrEqualTo(String value) {
            addCriterion("role_id <=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLike(String value) {
            addCriterion("role_id like", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotLike(String value) {
            addCriterion("role_id not like", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIn(List<String> values) {
            addCriterion("role_id in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotIn(List<String> values) {
            addCriterion("role_id not in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdBetween(String value1, String value2) {
            addCriterion("role_id between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotBetween(String value1, String value2) {
            addCriterion("role_id not between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andFlowIdIsNull() {
            addCriterion("flow_id is null");
            return (Criteria) this;
        }

        public Criteria andFlowIdIsNotNull() {
            addCriterion("flow_id is not null");
            return (Criteria) this;
        }

        public Criteria andFlowIdEqualTo(String value) {
            addCriterion("flow_id =", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotEqualTo(String value) {
            addCriterion("flow_id <>", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdGreaterThan(String value) {
            addCriterion("flow_id >", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdGreaterThanOrEqualTo(String value) {
            addCriterion("flow_id >=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLessThan(String value) {
            addCriterion("flow_id <", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLessThanOrEqualTo(String value) {
            addCriterion("flow_id <=", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdLike(String value) {
            addCriterion("flow_id like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotLike(String value) {
            addCriterion("flow_id not like", value, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdIn(List<String> values) {
            addCriterion("flow_id in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotIn(List<String> values) {
            addCriterion("flow_id not in", values, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdBetween(String value1, String value2) {
            addCriterion("flow_id between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria andFlowIdNotBetween(String value1, String value2) {
            addCriterion("flow_id not between", value1, value2, "flowId");
            return (Criteria) this;
        }

        public Criteria andDepartIdIsNull() {
            addCriterion("depart_id is null");
            return (Criteria) this;
        }

        public Criteria andDepartIdIsNotNull() {
            addCriterion("depart_id is not null");
            return (Criteria) this;
        }

        public Criteria andDepartIdEqualTo(String value) {
            addCriterion("depart_id =", value, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdNotEqualTo(String value) {
            addCriterion("depart_id <>", value, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdGreaterThan(String value) {
            addCriterion("depart_id >", value, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdGreaterThanOrEqualTo(String value) {
            addCriterion("depart_id >=", value, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdLessThan(String value) {
            addCriterion("depart_id <", value, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdLessThanOrEqualTo(String value) {
            addCriterion("depart_id <=", value, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdLike(String value) {
            addCriterion("depart_id like", value, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdNotLike(String value) {
            addCriterion("depart_id not like", value, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdIn(List<String> values) {
            addCriterion("depart_id in", values, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdNotIn(List<String> values) {
            addCriterion("depart_id not in", values, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdBetween(String value1, String value2) {
            addCriterion("depart_id between", value1, value2, "departId");
            return (Criteria) this;
        }

        public Criteria andDepartIdNotBetween(String value1, String value2) {
            addCriterion("depart_id not between", value1, value2, "departId");
            return (Criteria) this;
        }

        public Criteria andOpTitileIsNull() {
            addCriterion("op_titile is null");
            return (Criteria) this;
        }

        public Criteria andOpTitileIsNotNull() {
            addCriterion("op_titile is not null");
            return (Criteria) this;
        }

        public Criteria andOpTitileEqualTo(String value) {
            addCriterion("op_titile =", value, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileNotEqualTo(String value) {
            addCriterion("op_titile <>", value, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileGreaterThan(String value) {
            addCriterion("op_titile >", value, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileGreaterThanOrEqualTo(String value) {
            addCriterion("op_titile >=", value, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileLessThan(String value) {
            addCriterion("op_titile <", value, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileLessThanOrEqualTo(String value) {
            addCriterion("op_titile <=", value, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileLike(String value) {
            addCriterion("op_titile like", value, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileNotLike(String value) {
            addCriterion("op_titile not like", value, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileIn(List<String> values) {
            addCriterion("op_titile in", values, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileNotIn(List<String> values) {
            addCriterion("op_titile not in", values, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileBetween(String value1, String value2) {
            addCriterion("op_titile between", value1, value2, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpTitileNotBetween(String value1, String value2) {
            addCriterion("op_titile not between", value1, value2, "opTitile");
            return (Criteria) this;
        }

        public Criteria andOpDescIsNull() {
            addCriterion("op_desc is null");
            return (Criteria) this;
        }

        public Criteria andOpDescIsNotNull() {
            addCriterion("op_desc is not null");
            return (Criteria) this;
        }

        public Criteria andOpDescEqualTo(String value) {
            addCriterion("op_desc =", value, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescNotEqualTo(String value) {
            addCriterion("op_desc <>", value, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescGreaterThan(String value) {
            addCriterion("op_desc >", value, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescGreaterThanOrEqualTo(String value) {
            addCriterion("op_desc >=", value, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescLessThan(String value) {
            addCriterion("op_desc <", value, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescLessThanOrEqualTo(String value) {
            addCriterion("op_desc <=", value, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescLike(String value) {
            addCriterion("op_desc like", value, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescNotLike(String value) {
            addCriterion("op_desc not like", value, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescIn(List<String> values) {
            addCriterion("op_desc in", values, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescNotIn(List<String> values) {
            addCriterion("op_desc not in", values, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescBetween(String value1, String value2) {
            addCriterion("op_desc between", value1, value2, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpDescNotBetween(String value1, String value2) {
            addCriterion("op_desc not between", value1, value2, "opDesc");
            return (Criteria) this;
        }

        public Criteria andOpPicIsNull() {
            addCriterion("op_pic is null");
            return (Criteria) this;
        }

        public Criteria andOpPicIsNotNull() {
            addCriterion("op_pic is not null");
            return (Criteria) this;
        }

        public Criteria andOpPicEqualTo(String value) {
            addCriterion("op_pic =", value, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicNotEqualTo(String value) {
            addCriterion("op_pic <>", value, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicGreaterThan(String value) {
            addCriterion("op_pic >", value, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicGreaterThanOrEqualTo(String value) {
            addCriterion("op_pic >=", value, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicLessThan(String value) {
            addCriterion("op_pic <", value, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicLessThanOrEqualTo(String value) {
            addCriterion("op_pic <=", value, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicLike(String value) {
            addCriterion("op_pic like", value, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicNotLike(String value) {
            addCriterion("op_pic not like", value, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicIn(List<String> values) {
            addCriterion("op_pic in", values, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicNotIn(List<String> values) {
            addCriterion("op_pic not in", values, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicBetween(String value1, String value2) {
            addCriterion("op_pic between", value1, value2, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpPicNotBetween(String value1, String value2) {
            addCriterion("op_pic not between", value1, value2, "opPic");
            return (Criteria) this;
        }

        public Criteria andOpVideoIsNull() {
            addCriterion("op_video is null");
            return (Criteria) this;
        }

        public Criteria andOpVideoIsNotNull() {
            addCriterion("op_video is not null");
            return (Criteria) this;
        }

        public Criteria andOpVideoEqualTo(String value) {
            addCriterion("op_video =", value, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoNotEqualTo(String value) {
            addCriterion("op_video <>", value, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoGreaterThan(String value) {
            addCriterion("op_video >", value, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoGreaterThanOrEqualTo(String value) {
            addCriterion("op_video >=", value, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoLessThan(String value) {
            addCriterion("op_video <", value, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoLessThanOrEqualTo(String value) {
            addCriterion("op_video <=", value, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoLike(String value) {
            addCriterion("op_video like", value, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoNotLike(String value) {
            addCriterion("op_video not like", value, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoIn(List<String> values) {
            addCriterion("op_video in", values, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoNotIn(List<String> values) {
            addCriterion("op_video not in", values, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoBetween(String value1, String value2) {
            addCriterion("op_video between", value1, value2, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVideoNotBetween(String value1, String value2) {
            addCriterion("op_video not between", value1, value2, "opVideo");
            return (Criteria) this;
        }

        public Criteria andOpVisibleIsNull() {
            addCriterion("op_visible is null");
            return (Criteria) this;
        }

        public Criteria andOpVisibleIsNotNull() {
            addCriterion("op_visible is not null");
            return (Criteria) this;
        }

        public Criteria andOpVisibleEqualTo(Byte value) {
            addCriterion("op_visible =", value, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleNotEqualTo(Byte value) {
            addCriterion("op_visible <>", value, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleGreaterThan(Byte value) {
            addCriterion("op_visible >", value, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleGreaterThanOrEqualTo(Byte value) {
            addCriterion("op_visible >=", value, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleLessThan(Byte value) {
            addCriterion("op_visible <", value, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleLessThanOrEqualTo(Byte value) {
            addCriterion("op_visible <=", value, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleIn(List<Byte> values) {
            addCriterion("op_visible in", values, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleNotIn(List<Byte> values) {
            addCriterion("op_visible not in", values, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleBetween(Byte value1, Byte value2) {
            addCriterion("op_visible between", value1, value2, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpVisibleNotBetween(Byte value1, Byte value2) {
            addCriterion("op_visible not between", value1, value2, "opVisible");
            return (Criteria) this;
        }

        public Criteria andOpOrderIsNull() {
            addCriterion("op_order is null");
            return (Criteria) this;
        }

        public Criteria andOpOrderIsNotNull() {
            addCriterion("op_order is not null");
            return (Criteria) this;
        }

        public Criteria andOpOrderEqualTo(Integer value) {
            addCriterion("op_order =", value, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderNotEqualTo(Integer value) {
            addCriterion("op_order <>", value, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderGreaterThan(Integer value) {
            addCriterion("op_order >", value, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("op_order >=", value, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderLessThan(Integer value) {
            addCriterion("op_order <", value, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderLessThanOrEqualTo(Integer value) {
            addCriterion("op_order <=", value, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderIn(List<Integer> values) {
            addCriterion("op_order in", values, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderNotIn(List<Integer> values) {
            addCriterion("op_order not in", values, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderBetween(Integer value1, Integer value2) {
            addCriterion("op_order between", value1, value2, "opOrder");
            return (Criteria) this;
        }

        public Criteria andOpOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("op_order not between", value1, value2, "opOrder");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}